'''
定义路由匹配规则
'''
from rest_framework.routers import DefaultRouter
from . import views
from django.urls import path

app_name = 'inform'

router = DefaultRouter(trailing_slash=False)
router.register(r'inform', views.InformViewSet, basename='inform')

urlpatterns = [
                  path('action/read', views.ReadInformView.as_view(), name='inform_read'),
              ] + router.urls
